﻿use namespace "flash.display"; use namespace "flash.geom"; use namespace "flash.text";
var opts = new NativeWindowInitOptions(); opts.systemChrome = "standard"; opts.type = "normal";
var w = new NativeWindow(opts); w.stage.scaleMode = "noScale"; w.stage.align = "topLeft"; w.bounds = new "flash.geom"::Rectangle(50, 50, 200, 200); w.title = "Hello World!"
var txt = new TextField(); txt.text = "Hello World!";
w.stage.addChild(txt); w.activate();